package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayTypeServiceApi;
import com.thb.pay.api.payment.vo.req.PayTypePageReq;
import com.thb.pay.api.payment.vo.req.PayTypeReq;
import com.thb.pay.api.payment.vo.resp.PayTypeVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayTypeServiceApiFallbackFactory implements FallbackFactory<PayTypeServiceApi> {


    @Override
    public PayTypeServiceApi create(Throwable throwable) {
        return new PayTypeServiceApi() {
            @Override
            public PageResult<PayTypeVo> findPage(PayTypePageReq pageReq) {
                return null;
            }

            @Override
            public List<PayTypeVo> findAllList() {
                return null;
            }

            @Override
            public List<PayTypeVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public PayTypeVo getById(Long id) {
                return null;
            }

            @Override
            public void add(PayTypeReq PayTypeReq) {

            }

            @Override
            public void update(PayTypeReq PayTypeReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}